import { _decorator, Component, Node } from 'cc';
import { EliminateProgress } from './EliminateProgress';
import { ProgressBar } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('EliminateMath3Progress')
export class EliminateMath3Progress extends EliminateProgress {

    protected progress: ProgressBar = null;

    protected __preload(): void {
        this.progress = this.node.getComponent(ProgressBar);
    }

    protected onLoad(): void {

    }

    protected _resetProgress(): void {
        this.progress.progress = 1;
    }



    updateProgress(progressValue: number): void {
        this.progress.progress = 1 - progressValue;
    }

    start() {

    }

    update(deltaTime: number) {
        super.update(deltaTime);
    }
}

